package com.example.mapper;

import com.example.entity.Delivery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.StuDelivery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cyk
 * @since 2022-02-19
 */
@Mapper
@Repository
public interface DeliveryMapper extends BaseMapper<Delivery> {

    public List<Delivery> getStuDelivery(Long id);

    public Delivery getDelivery(Long stuid, Long recid);

    int upDelivery(Long id);

    int agreeDelivery(Long id);

    int refuseDelivery(Long id);

    int saveDelivery(Delivery delivery);

    public Delivery find(Delivery delivery);

    public Delivery delDelivery(Long id);

    public List<StuDelivery> stuDelivery(Long id);
}
